<!DOCTYPE html>
<html>
<head>
  	<#import "../common/common.macro.ftl" as netCommon>
	<@netCommon.commonStyle />
	<!-- DataTables -->
  	<link rel="stylesheet" href="${request.contextPath}/static/adminlte/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css">
    <title>${I18n.admin_name}</title>
</head>
<body class="hold-transition skin-blue sidebar-mini <#if cookieMap?exists && cookieMap["xxljob_adminlte_settings"]?exists && "off" == cookieMap["xxljob_adminlte_settings"].value >sidebar-collapse</#if>">
<div class="wrapper">
	<!-- header -->
	<@netCommon.commonHeader />
	<!-- left -->
	<@netCommon.commonLeft "jobTimingStrategy" />
	
	<!-- Content Wrapper. Contains page content -->
	<div class="content-wrapper">
		<!-- Content Header (Page header) -->
		<section class="content-header">
			<h1>${I18n.timingStrategy_name}</h1>
		</section>
		
		<!-- Main content -->
	    <section class="content">
			<div class="col-xs-2">
				<button class="btn btn-block btn-info" id="searchBtn">${I18n.system_search}</button>
			</div>
			<div class="col-xs-1">
				<button class="btn btn-block btn-success add" type="button">${I18n.jobinfo_field_add}</button>
			</div>
			<div class="row">
				<div class="col-xs-12">
					<div class="box">
			            <div class="box-body" >
			              	<table id="timingStrategy_list" class="table table-bordered table-striped" width="100%" >
				                <thead>
					            	<tr>
					            		<th name="id" >${I18n.strategy_id}</th>
					            		<th name="description" >${I18n.strategy_description}</th>
					                	<th name="cron" >${I18n.strategy_cron}</th>
					                  	<th name="addTime" >${I18n.strategy_addTime}</th>
                                        <th name="editTime" >${I18n.strategy_updateTime}</th>
					                  	<th>${I18n.system_opt}</th>
					                </tr>
				                </thead>
				                <tbody></tbody>
				                <tfoot></tfoot>
							</table>
						</div>
					</div>
				</div>
			</div>
	    </section>
	</div>
	<!-- 新增.模态框 -->
	<div class="modal fade" id="addModal" tabindex="-1" role="dialog"  aria-hidden="true">
		<div class="modal-dialog ">
			<div class="modal-content">
				<div class="modal-header">
					<h4 class="modal-title" >${I18n.timingStrategy_add}</h4>
				</div>
				<div class="modal-body">
					<form class="form-horizontal form" role="form" >
						<div class="form-group">
							<label class="col-sm-3 control-label required" for="quartzDescription">执行策略名称：</label>
							<div class="col-sm-7">
								<input id="description" name="description" type="text" placeholder="请输入执行策略名称" class="form-control" aria-required="true">
							</div>
						</div>
						<input type="hidden" name="cron" />
						<div class="form-group">
							<label class="col-sm-3 control-label required" for="quartzCron">执行策略：</label>
							<div class="col-sm-5">
								<input id="cronConf" readonly="readonly" name="cronConf" placeholder="请选择cron编码" class="form-control" aria-required="true">
							</div>
						</div>
						<hr>
						<div class="form-group">
							<div class="col-sm-offset-3 col-sm-6">
								<button type="submit" class="btn btn-primary"  >${I18n.system_save}</button>
								<button type="button" class="btn btn-default" data-dismiss="modal">${I18n.system_cancel}</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>

	<!-- 更新.模态框 -->
	<div class="modal fade" id="updateModal" tabindex="-1" role="dialog"  aria-hidden="true">
		<div class="modal-dialog ">
			<div class="modal-content">
				<div class="modal-header">
					<h4 class="modal-title" >定时策略编辑</h4>
				</div>
				<div class="modal-body">
					<form class="form-horizontal form" role="form" >
						<div class="form-group">
							<label class="col-sm-3 control-label required" for="quartzDescription">执行策略名称：</label>
							<div class="col-sm-7">
								<input id="description" name="description" type="text" placeholder="请输入执行策略名称" class="form-control" aria-required="true">
							</div>
						</div>
						<input type="hidden" name="cron" />
						<div class="form-group">
							<label class="col-sm-3 control-label required" for="quartzCron">执行策略：</label>
							<div class="col-sm-5">
								<input id="cronConf" readonly="readonly" name="cronConf" placeholder="请选择cron编码" class="form-control" aria-required="true">
							</div>
						</div>
						<hr>
						<div class="form-group">
							<div class="col-sm-offset-3 col-sm-6">
								<button type="submit" class="btn btn-primary"  >${I18n.system_save}</button>
								<button type="button" class="btn btn-default" data-dismiss="modal">${I18n.system_cancel}</button>
								<input type="hidden" name="id" >
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>

	<!-- footer -->
	<@netCommon.commonFooter />
</div>

<@netCommon.commonScript />
<!-- DataTables -->
<script src="${request.contextPath}/static/adminlte/bower_components/datatables.net/js/jquery.dataTables.min.js"></script>
<script src="${request.contextPath}/static/adminlte/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
<!-- moment -->
<script src="${request.contextPath}/static/adminlte/bower_components/moment/moment.min.js"></script>
<#-- cronGen -->
<script src="${request.contextPath}/static/plugins/cronGen/cronGen<#if I18n.admin_i18n?default('')?length gt 0 >_${I18n.admin_i18n}</#if>.js"></script>
<#--<script src="${request.contextPath}/static/js/cron-generator/cronGen.js"></script>-->
<script src="${request.contextPath}/static/js/jobTimingStrategy.index.1.js?v=4"></script>
</body>
</html>
